bitkeeper revision 1.1159.1.128 (413cb8d36YrJe8ra_UvZN0wN9qeQWg)
authorcl349@labyrinth.cl.cam.ac.uk <cl349@labyrinth.cl.cam.ac.uk>
Mon, 6 Sep 2004 19:21:55 +0000 (19:21 +0000)
committercl349@labyrinth.cl.cam.ac.uk <cl349@labyrinth.cl.cam.ac.uk>
Mon, 6 Sep 2004 19:21:55 +0000 (19:21 +0000)
Allow Linux and NetBSD builds to co-exist.

Makefile

index dc926deb75a51323d1666f37f234f6e818ba6f4a..c3cba553bf726d30bf2a09319ea88214c20140d0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -145,11 +145,11 @@ mk-netbsd-trees: netbsd-tools pristine-netbsd-src
           ./mkbuildtree ../netbsd-$(NETBSD_VER)-xenU )
 
 # build the specified netbsd tree
-BDIR = $(subst netbsd-,netbsd-$(NETBSD_VER)-,$@)
+NBDIR = $(subst netbsd-,netbsd-$(NETBSD_VER)-,$@)
 netbsd-xen%:   
-       $(MAKE) -C $(BDIR) config
-       $(MAKE) -C $(BDIR) netbsd
-       $(MAKE) -C $(BDIR) INSTALL_PATH=$(INSTALL_DIR) INSTALL_NAME=boot/netbsd-$(NETBSD_VER)-$(subst netbsd-,,$@) install
+       $(MAKE) -C $(NBDIR) config
+       $(MAKE) -C $(NBDIR) netbsd
+       $(MAKE) -C $(NBDIR) INSTALL_PATH=$(INSTALL_DIR) INSTALL_NAME=boot/netbsd-$(NETBSD_VER)-$(subst netbsd-,,$@) install
 
 # build xen, the tools, and a domain 0 plus unprivileged linux-xen images,
 # and place them in the install directory. 'make install' should then